package com.xcity.logupload.task;

import com.xcity.logupload.config.UploadType;
import com.xcity.logupload.task.ftp.FtpUploadTask;
import com.xcity.logupload.task.ftp.FtpUploadYesterdayTask;

public class UploadTaskFactory {

	
	public static UploadTask create(UploadType type) {
		if (type == UploadType.YESTERDAY) {
			return new FtpUploadYesterdayTask();
		}
		return new FtpUploadTask();
	}
	
}
